package com.hongyun.sdk.common;

import com.alibaba.fastjson2.JSON;

import java.util.HashMap;
import java.util.Map;

public class HongYunCommon {
    public static final String HttpStatusError = "ERROR";
    public static final String HttpStatusOk = "OK";

    public static String error(String errorCode, String errorMsg) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("status", HongYunCommon.HttpStatusError);
        map.put("errorCode", errorCode);
        map.put("errorMsg", errorMsg);
        return JSON.toJSONString(map);
    }
}
